using UnityEngine;
using System.Collections;

public class SolidColorGizmo : MonoBehaviour {
	
	public Color gizmoColor
	{
		set 
		{
			m_gizmoColor = value;
		}
	}
	
	void OnDrawGizmos ()
	{
		Color oldColor = Gizmos.color;
		Gizmos.color = m_gizmoColor;
		DrawGizmos ();
		Gizmos.color = oldColor;
	}
	
	protected virtual void DrawGizmos ()
	{
		// subclass should overide this method.
	}
	
	protected Color m_gizmoColor;
}
